<%--
  Created by IntelliJ IDEA.
  User: Wenxin
  Date: 2017/3/13
  Time: 19:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../base/commons.jsp" %>
<!doctype html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>修改密码</title>
    <%@include file="../base/head.jsp" %>
    <style type="text/css">
        #tip{
            color: #ff0000;
        }
    </style>
</head>
<body>
<div class="container ">
    <form action="${baseUrl}user/update" method="post" class="form-horizontal">
        <input type="hidden" name="id" value="${user.id}">
        <div class="form-group">
            <label class="col-sm-2 control-label">用户名:</label>
            <div class="col-sm-10">
                <p class="form-control-static">${user.username}</p>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">旧密码:</label>
            <div class=" col-sm-10">
                <input type="password" name="oldPassword" class="form-control" placeholder="旧密码">
            </div>
            <label class="col-sm-2 control-label">新密码:</label>
            <div class=" col-sm-10">
                <input type="password" name="newPassword" class="form-control" placeholder="新密码">
            </div>
        </div>
        <div class="form-group">
            <p class="form-control-static" id="tip">${errorInfo}</p>
            <input type="submit" class="btn btn-primary">
        </div>
    </form>
</div>
</body>
</html>
